//========================================================================
// FILENAME : motor.h
// CREATED : 24-04-2009
// AUTHOR : Jesper Aagaard Vuholm
// DESCR. : Header file for motor control.
//
//------------------------------------------------------------------------
//
// REV. DATE/AUTHOR CHANGE DESCRIPTION
// 1.00 24-04-2009/Jesper basic prototype declarations added.
//========================================================================
#include <avr/io.h>

// motor defines
#define MAX_PWM 255
#define SCALE_PWM 1
#define WHEEL_COMPENSATOR 1;//0.98(GOOD)//0.995 // Increase to remove Right-drift.

// public functions
void motor_init(void);
void runMotors(int speedLeft, int speedRight,signed int joystick); //values must be between -255 and 255...
void stopMotors(void);
// private functions
static void motorLeft_stop(void);
static void motorRight_stop(void);
